{{!-- 
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--}}
<h3 class="wrap-header bold"> Reports </h3>

<div class="wrap non-collapsible ">
	<h3 class="wrap-header reportSearchHeader">Search Criteria
		<span class="label label-yellow pull-right" data-js="searchResult" ></span>
	</h3>
	<div class="wrap well ">
		<div class="row-fluid">
			<div class="span12">
				<div class="form-horizontal">
					<div class="span12">
						<div class="control-group">
							<label class="control-label">Policy Name</label>
							<div class="controls">
								<input type="text" name="policyName" data-js="policyName" class="input-xxlarge">
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">Resource</label>
							<div class="controls">
								<input type="text" name="resourceName" data-js="resourceName" class="input-xxlarge">
							</div>
						</div>

						<div class="control-group search-by">
							<label class="control-label">Search By</label>
							<div class="controls" data-js="searchBy">
								<div class="">
									<div class="btn-group">
										<button class="btn dropdown-toggle" data-toggle="dropdown">
											<span>Group</span>
											<span class="caret"> </span>
										</button>
										<ul class="dropdown-menu">
											<li>
												<a data-id="grpSel" class="autoText" href="javascript:;">Group</a>
											</li>
											<li>
												<a data-id="userSel" class="autoText" href="javascript:;">Username</a>
											</li>
										</ul>
									</div>
									<input type="text" data-js="selectGroups">
									<input type="text" style="display: none" data-js="userName">
								</div>
							</div>
						</div>


					</div>
					<div >
						<div class="control-group">
							<div class="controls">
								<button type="button" class="btn btn-primary btn-small" data-js="searchBtn" name="searchPolicy">
									<i class="icon-search"></i>
									Search
								</button>
							</div>
						</div>

					</div>

				</div>
			</div>

		</div>
	</div>

<!-- 	<div class="clearfix">
		<span class="pull-right">GOTO :&nbsp;&nbsp; 
			<a href="javascript:;" class="link-tag gotoLink" data-js="gotoHive" style="margin-right: 5px;">
				<i class=" icon-chevron-down" ></i>
				Hive Table
			</a>
			<a href="javascript:;" class="link-tag gotoLink" data-js="gotoHbase">
				<i class=" icon-chevron-down" ></i>
				Hbase Table
			</a>
			<a href="javascript:;" class="link-tag gotoLink" data-js="gotoKnox">
				<i class=" icon-chevron-down" ></i>
				Knox Table
			</a>
			<a href="javascript:;" class="link-tag gotoLink" data-js="gotoStorm">
				<i class=" icon-chevron-down" ></i>
				Storm Table
			</a>
		</span>
	</div> -->

	<div class="row-fluid">
		{{#each policyHeaderList}}
			<h3 class="wrap-header bold reportSearchHeader" data-js="hdfsHeader"> {{capitaliseLetter this.serviceDefName}}
				<span class="label label-yellow pull-right" data-js="hdfsSearchResult" ></span>
			</h3>
			<div class="wrap well position-relative">
				<div  data-id="{{this.collName}}" class="hdfs-table showMoreLess"></div>
			</div>
		{{/each}}	

	</div>

</div>
